package kino;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import com.modeliosoft.modelio.javadesigner.annotations.objid;

public class Programm {
    @objid ("7f7f6aea-7737-11e1-9cce-0024d7607540")
    public List<Filiale> Filialen = new ArrayList<Filiale>();

    @objid ("4fca29a6-7738-11e1-9cce-0024d7607540")
    public List<Vorstellung> Vorstellungen;

    @objid ("f3fb945f-773b-11e1-9cce-0024d7607540")
    private Date gueltigVon;

    @objid ("f65b3ecd-773b-11e1-9cce-0024d7607540")
    private Date gueltigBis;

    @objid ("d94aed81-94ff-11e1-b35a-0024d7607540")
    private int id;


    public Date getGueltigVon() {
        // Automatically generated method. Please delete this comment before entering specific code.
        return this.gueltigVon;
    }

    public void setGueltigVon(final Date value) {
        // Automatically generated method. Please delete this comment before entering specific code.
        this.gueltigVon = value;
    }

    public Date getGueltigBis() {
        // Automatically generated method. Please delete this comment before entering specific code.
        return this.gueltigBis;
    }

    public void setGueltigBis(final Date value) {
        // Automatically generated method. Please delete this comment before entering specific code.
        this.gueltigBis = value;
    }

    public Programm(final Date gueltigVon, final Date gueltigBis) {
        super();
        this.gueltigVon = gueltigVon;
        this.gueltigBis = gueltigBis;
        System.out.println("Done");
    }

    public Programm(final List<Vorstellung> vorstellungen, final Date gueltigVon, final Date gueltigBis) {
        super();
        Vorstellungen = vorstellungen;
        this.gueltigVon = gueltigVon;
        this.gueltigBis = gueltigBis;
    }

    public String toString() {
        String ausgabe="Vorstellungen vom " + gueltigVon + " bis zum " + gueltigBis + "\n________________________________________________";
        //Iterator<Vorstellung> itr1 = Vorstellungen.iterator();
        //while(itr1.hasNext()){
        //    ausgabe= ausgabe + "\n"+ itr1.next();
        //}
        return ausgabe;
    }

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
